package ModelLayer;

public class Product
{
	private int id;
	private Supplier supplier;
	private String name;
	private double purchasePrice;
	private boolean forRent;
	private double price;
	private String countryOfOrigin;
	private int minStock;
	
	public Product() {}
	
	public Product(int id) {this.id = id;}

	public Product(int id, String name, double purchasePrice, boolean forRent,
			double price, String countryOfOrigin, int minStock)
	{
		this.id = id;
		this.name = name;
		this.purchasePrice = purchasePrice;
		this.forRent = forRent;
		this.price = price;
		this.countryOfOrigin = countryOfOrigin;
		this.minStock = minStock;
	}

	public Product(int id, Supplier supplier, String name, double purchasePrice,
			boolean forRent, double price, String countryOfOrigin, int minStock)
	{
		this.id = id;
		this.supplier = supplier;
		this.name = name;
		this.purchasePrice = purchasePrice;
		this.forRent = forRent;
		this.price = price;
		this.countryOfOrigin = countryOfOrigin;
		this.minStock = minStock;
	}

	public int getId()
	{
		return id;
	}

	public Supplier getSupplier()
	{
		return supplier;
	}

	public String getName()
	{
		return name;
	}

	public double getPurchasePrice()
	{
		return purchasePrice;
	}

	public boolean isForRent()
	{
		return forRent;
	}

	public double getPrice()
	{
		return price;
	}

	public String getCountryOfOrigin()
	{
		return countryOfOrigin;
	}

	public int getMinStock()
	{
		return minStock;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public void setSupplier(Supplier supplier)
	{
		this.supplier = supplier;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public void setPurchasePrice(double purchasePrice)
	{
		this.purchasePrice = purchasePrice;
	}

	public void setForRent(boolean forRent)
	{
		this.forRent = forRent;
	}

	public void setPrice(double price)
	{
		this.price = price;
	}

	public void setCountryOfOrigin(String countryOfOrigin)
	{
		this.countryOfOrigin = countryOfOrigin;
	}

	public void setMinStock(int minStock)
	{
		this.minStock = minStock;
	}

	@Override
	public String toString()
	{
		return "Product [getId()=" + getId() + ", getSupplier()=" + getSupplier()
				+ ", getName()=" + getName() + ", getPurchasePrice()="
				+ getPurchasePrice() + ", isForRent()=" + isForRent() + ", getPrice()="
				+ getPrice() + ", getCountryOfOrigin()=" + getCountryOfOrigin()
				+ ", getMinStock()=" + getMinStock() + "]";
	}

	
}
